import request from '@/request/request.js';

// 查询任务大厅
export const taskHall = (data) => {
	return request({
		url: `/maintenance/app/work/order/taskHall`,
		method: 'get',
		data
	}, false)
}

// 检测任务是否打卡
export const isClockIn = (id) => {
	return request({
		url: `/maintenance/app/sub/plan/app/isClockIn/${id}`,
		method: 'get'
	})
}

// 检测是否在打卡范围内
export const isClockInRange = (data) => {
	return request({
		url: `/maintenance/app/clockIn/record/check/range`,
		method: 'get',
		data
	}, false)
}

// 获取项目信息
export const projectDetail = (id) => {
	return request({
		url: `/maintenance/app/project/${id}`,
		method: 'get'
	}, false)
}

// 获取城市区域
export const getRegionData = () => {
	return request({
		url: `/region/tree`,
		method: 'get'
	})
}
